package com.easyhuan.action;

import java.util.Set;

import javax.servlet.http.HttpServletRequest;

import org.apache.struts2.ServletActionContext;
import org.hibernate.Session;
import org.hibernate.Transaction;

import com.easyhuan.dao.GoodsUtil;
import com.easyhuan.pojo.Goods;
import com.easyhuan.util.HibernateUtil;
import com.opensymphony.xwork2.ActionSupport;

public class GoodsUpdate extends ActionSupport {

	private Goods goods;
	private Set pictureSet;
	
	
	public Goods getGoods() {
		return goods;
	}


	public void setGoods(Goods goods) {
		this.goods = goods;
	}


	public Set getPictureSet() {
		return pictureSet;
	}


	public void setPictureSet(Set pictureSet) {
		this.pictureSet = pictureSet;
	}


	@Override
	public String execute() throws Exception {
		// TODO Auto-generated method stub
		GoodsUtil util = new GoodsUtil();
		Session session = HibernateUtil.getHibernateSession();
		Transaction transaction = session.beginTransaction();
		HttpServletRequest request = ServletActionContext.getRequest();
		
		
		return super.execute();
	}
}

